include $(TOPDIR)/rules.mk
PKG_NAME:=https_dns_proxy
-PKG_VERSION:=2018-01-28
+PKG_VERSION:=2018-04-23
PKG_RELEASE=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MIRROR_HASH:=627f468230a02d8c36915978cc4dce9f1458590aa30e2df723d59cb860acb192
+PKG_MIRROR_HASH:=24b7e4238c37e646f33eee3a374f6b7beb5c167b9c5008cc13b51e5f1f3a44ea
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=843b768f0cd3aa6fa5aed4fa992776657bc18d14
+PKG_SOURCE_VERSION:=bea68401330e611f6e9b75cec84e2dc4e81e52de
PKG_LICENSE:=MIT
config_get group "$cfg" group
config_get subnet_addr "$cfg" subnet_addr
config_get proxy_server "$cfg" proxy_server
+ config_get url_prefix "$cfg" url_prefix
if [ -n "$subnet_addr" ]; then
subnet_param="-e $subnet_addr"
proxy_param="-t $proxy_server"
fi
+ if [ -z "$url_prefix" ]; then
+ url_prefix="https://dns.google.com/resolve?"
+ fi
+
procd_open_instance
procd_set_param command ${PROG} \
-a "$listen_addr" -p "$listen_port" \
- -u "$user" -g "$group" $subnet_param $proxy_param
+ -u "$user" -g "$group" $subnet_param $proxy_param \
+ -r "$url_prefix"
procd_set_param respawn
procd_close_instance
}